//
//  TestQuestionTableViewCell.m
//  WheatPlan
//
//  Created by 王晨辉 on 15/6/23.
//  Copyright (c) 2015年 IOSTeam. All rights reserved.
//

#import "TestQuestionTableViewCell.h"



@implementation TestQuestionTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        [self addSubviews];
    }
    return self;
}


// create subviews
-(void)addSubviews
{
    

   
    
    
    
    
    
    self.rightBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//    [self.rightBtn addTarget:self action:@selector(rightBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [self.rightBtn setTitle:@"能够" forState:UIControlStateNormal];
    self.rightBtn.titleLabel.font = [UIFont systemFontOfSize:12];
    [self.rightBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [self addSubview:self.rightBtn];
    
    self.wrongBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.wrongBtn setTitle:@"不能够" forState:UIControlStateNormal];
    [self.wrongBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    self.wrongBtn.titleLabel.font = [UIFont systemFontOfSize:12];
    [self addSubview:self.wrongBtn];
    
    self.noBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//    [self.noBtn addTarget:self action:@selector(rightBtnClick) forControlEvents:UIControlEventTouchUpInside];

    self.noBtn.titleLabel.font = [UIFont systemFontOfSize:12];
    [self.noBtn setTitle:@"不清楚" forState:UIControlStateNormal];
    [self.noBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [self addSubview:self.noBtn];
    
    
    
    
    self.rightBtnbtn = [UIButton buttonWithType:UIButtonTypeCustom];

//    [self.rightBtnbtn addTarget:self action:@selector(addTag:) forControlEvents:UIControlEventTouchUpInside];
    [self.rightBtnbtn setImage:[UIImage imageNamed:@"框-"] forState:UIControlStateNormal];
    [self.rightBtnbtn setImage:[UIImage imageNamed:@"选中_"] forState:UIControlStateSelected];
    [self addSubview:self.rightBtnbtn];
//    self.rightBtnbtn.tag = indexPath.row+1;
    
    
    
    self.wrongBtnbtn = [UIButton buttonWithType:UIButtonTypeCustom];

//    [ self.wrongBtnbtn addTarget:self action:@selector(addTag1:) forControlEvents:UIControlEventTouchUpInside];
    [ self.wrongBtnbtn setImage:[UIImage imageNamed:@"框-"] forState:UIControlStateNormal];
    [ self.wrongBtnbtn setImage:[UIImage imageNamed:@"选中_"] forState:UIControlStateSelected];
    [self addSubview: self.wrongBtnbtn];
//    self.wrongBtnbtn.tag = indexPath.row+1;
    
    
    self.noBtnbtn = [UIButton buttonWithType:UIButtonTypeCustom];

//    [self.noBtnbtn addTarget:self action:@selector(addTag2:) forControlEvents:UIControlEventTouchUpInside];
    [self.noBtnbtn setImage:[UIImage imageNamed:@"框-"] forState:UIControlStateNormal];
    [self.noBtnbtn setImage:[UIImage imageNamed:@"选中_"] forState:UIControlStateSelected];
    [self addSubview:self.noBtnbtn];
//    cell.noBtnbtn.tag = indexPath.row+1;

    
}
@end
